<div class="row animated fadeInRight">
    <div class="col-md-12">
        <div class="box box-success">
            <div class="panel-heading">
                {:__('系统配置')}
            </div>
            <div class="panel-body">
                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('home/add')}">
                    <input id="c-id" class="form-control" name="row[id]" type="hidden" value="{$row.id|htmlentities}">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Times')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-times" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[times]" type="text" value="{:date('Y-m-d H:i:s', $row.times)}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('音乐')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-music" class="form-control" size="50" name="row[music]" type="text" value="{$row.music|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-music" class="btn btn-danger faupload" data-input-id="c-music" data-multiple="false" data-preview-id="p-music"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <!--                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
                                </div>
                                <span class="msg-box n-right" for="c-music"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-music"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('开启音乐')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            {:build_radios('row[is_music]', ['normal'=>__('开启'), 'hidden'=>__('关闭')])}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('最大宽度')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-max_width" class="form-control" name="row[max_width]" type="text" value="{$row.max_width|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('最小宽度')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-min_width" class="form-control" name="row[min_width]" type="text" value="{$row.min_width|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>


            </div>
        </div>

    </div>
</div>